Facilitating the Definition of Programming Languages by Using Parametric Context Free Grammars

نویسندگان

  • NIKOLAOS S PAPASPYROU
  • VASSILIOS C VESCOUKIS
چکیده

In this paper we propose the use of a new kind of grammars which we call para metric context free grammars PCFG for the formal de nition of programming languages It combines the simplicity of ordinary context free grammars with expressive power and context sensitivity that is encountered in signi cantly more complex formal models As an example we consider a small programming language and present a simple and elegant formal de nition of its syntax and semantics The language is based on the principles of Reynolds Idealized Algol and combines a number of orthogonal features introduced one at a time Compared to related literature our approach di ers in providing i a rigid mathematical model for the de nition of syntax emphasizing orthogonality and ii a methodology for systematically augmenting the semantic de nition of programming languages by adding orthogonal features in a modular and elegant way

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Formal specification of the user interface by using parametric context-free grammars∗

Despite the significant progress and the emergence of proficient tools that have been witnessed recently, the development of user interfaces remains a hard task in the software development process. The use of formal methods for the specification of user interfaces has been proposed as an aid in this task and various formal models have been considered. Grammars were one of the earliest models th...

متن کامل

Finding Grammars That Are More Than Context-Free, But Not Fully Context-Sensitive

This survey paper describes several extensions of context-free grammars as defined in the Chomsky hierarchy. These augmentations use a variety of different strategies to create grammars that generate all context-free and some context-sensitive languages. The basic concepts of each of these extensions will be examined, as well as whether the enhanced grammars inherited some of the desirable prop...

متن کامل

A Note on Ambiguity in Context-Free Grammars

We show that ambiguity in context-free grammars can be decomposed into union-ambiguity and concatenation-ambiguity. We also show that the traditional proof of the undecidability of ambiguity in context-free grammars addresses only one part of ambiguity, namely the union-ambiguity. We extend this result by showing that the concatenation-ambiguity is also undecidable. Context-free grammars (CFGs)...

متن کامل

Associative Definition of Programming Languages1

Associative Language Descriptions are a recent grammar model, theoretically less powerful than Context Free grammars, but adequate for describing the syntax of programming languages. ALD do not use nonterminal symbols, but rely on permissible contexts for specifying valid syntax trees. In order to assess ALD adequacy, we analyze the descriptional complexity of structurally equivalent CF and ALD...

متن کامل

HASDF: A Generalized LR-parser Generator for Haskell

Language-centered software engineering requires language technology that (i) handles the full class of context-free grammars, and (ii) accepts grammars that contain syntactic information only. The syntax definition formalism SDF combined with GLR-parser generation offers such technology. We propose to make SDF and GLR-parsing available for use with various programming languages. We have done so...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999